import cv2 as cv
import numpy as np
import matplotlib.pyplot as plt

#图形的混合
#图形的缩放

img1=cv.imread('F:\\11\\13.png',1)
img2=cv.imread('F:\\11\\14.png',1)
row1,col1=img1.shape[:2]#读取了图形的分辨率
row2,clo2=img2.shape[:2]
print(row1,col1,row2,clo2)


img11=cv.resize(img1,dsize=(1920,1080),interpolation=cv.INTER_LINEAR)
img22=cv.resize(img2,dsize=(1920,1080),interpolation=cv.INTER_LINEAR)
img3=cv.addWeighted(img11,0.5,img22,0.5,0)
cv.imshow('img3',img3)
plt.imshow(img3[:,:,::-1])
plt.title('hunhe'),plt.xticks([]),plt.yticks([])
plt.show()